Repository navigation
[Scripting] Add manual validation tools for the analysis package - #290
Closed
BenWibking wants to merge 1 commit into
Closed
BenWibking wants to merge 1 commit into
BenWibking wants to merge 1 commit into
Conversation
This was referenced Oct 29, 2026
BenWibking
marked this pull request as draft
October 29, 2026 01:26
tools/analysis_validation/run_comparisons.sh compares the package with the tools it is meant to replace: - Leaf cells against yt on real Quokka plotfiles, by matching cells by level and center and comparing native values (compare_with_yt.py). - plotfile_fab_minmax.py against Kangaroo's original on synthetic plotfiles, including NaN cells and an all-NaN FAB, and on a real one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BenWibking
force-pushed
the
analysis-6-validation
branch
from
October 29, 2026 01:28
0e2ad3b to
fe39738
Compare
Contributor
Author
|
This is not needed as a PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tools that compare the package with the tools it replaces, run by hand (they need yt, a Kangaroo checkout or real plotfiles, so they are not part of ctest).
This PR is useful for manual validation, probably not for merging.
tools/analysis_validation/run_comparisons.sh BUILD WORKruns every comparison and reports PASS/FAIL. Each comparison is skipped if its prerequisite is missing.compare_with_yt.py): selects the same box in amrexplorer and yt, matches cells by level and center, and compares native values, cell volumes and phase masses. SetQUOKKA_PLOTFILEandQUOKKA_GALAXYto real plotfiles to run it.plotfile_fab_minmax.pynext to Kangaroo's original on synthetic fixtures (make_amr_fixture.py, andmake_nan_fixture.pywith NaN cells and an all-NaN FAB) and on the real plotfile, and checks the output is byte-identical.Results
All 9 comparisons pass:
gasDensityandtemperaturevalues, cell volumes and phase masses.Stack
Part of a stack replacing #276. Review and merge in order; each PR shows only its own layer.
🤖 Generated with Claude Code